﻿//using Microsoft.Extensions.Hosting;

//namespace WXWorkSvc.Common.Models;

//public class SqlServerLoggerHostedService : BackgroundService
//{
//    private readonly SqlServerLoggerProcessor _SqlServerLoggerProcessor;
//    public SqlServerLoggerHostedService(SqlServerLoggerProcessor processor)
//    {
//        _SqlServerLoggerProcessor = processor;
//    }
//    protected override async Task ExecuteAsync(CancellationToken stoppingToken)
//    {
//        await _SqlServerLoggerProcessor.StartAsync();
//    }
//    public override async Task StopAsync(CancellationToken cancellationToken)
//    {
//        await _SqlServerLoggerProcessor.StopAsync();
//        await base.StopAsync(cancellationToken);
//    }
//}
